package com.breakfast.fun.ui.user.login;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.user.coupon.Coupon;
import com.breakfast.fun.ui.user.coupon.CouponContract;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2017/2/6.
 */

public interface GiftContract {
    interface Model extends BaseModel {
        Observable<Coupon> getGiftModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void showGift(Coupon coupon);

        void closeActivity();
    }

    abstract class Presenter extends BasePresenter<GiftModel, GiftContract.View> {
        public abstract void getGift();
    }
}
